import React, { useEffect } from "react";
import { Table } from "antd";
import { CSSPrefix } from "./helpers/utils";
import { tableConfig ,formatData,comparisonFields,tableColumns} from "./helpers/const";


const PcComparison = (props) => {
  const {dataSource}=props||{};
  const resultDataSource=formatData(dataSource,tableConfig,comparisonFields);
  console.log(resultDataSource,'rerere');
  return <div className="pc-comparion-box">
     <Table className={`${CSSPrefix}-shopdata-table`} columns={tableColumns} dataSource={resultDataSource}></Table>
  </div>
};

export default PcComparison;